<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="selenium.base" href="" />
<!--Created from template:  applicationLoginConditional.html.vm-->
<title>Log in to application under test for appspec 'Eskine' when required by destination page</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">Log in to application under test for appspec 'Eskine' when required by destination page</td></tr>
</thead><tbody>

<tr>
	<td>echo</td>
	<td>TC_applicationLoginConditional_000</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>This test case logs a test user into the application under test for the appspec 'Eskine' when a destination page requires it.</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>TC_applicationLoginConditional_001</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>Determine if the destination page is a login page.  If it is, proceed with login.  If not, skip login by jumping to the last step.</td>
	<td></td>
</tr>
<tr>
	<td>storeAttribute</td>
	<td>//${metaNs}meta[@name='clickframesPage']@content</td>
	<td>clickframesPage</td>
</tr>
<tr>
	<td>echo</td>
	<td>Current page: ${clickframesPage}</td>
	<td>${clickframesPage}</td>
</tr>
<tr>
	<td>gotoIf</td>
	<td>'${clickframesPage}' != '${appspec.security.defaultLoginPage.id}'</td>
	<td>notLoginPage</td>
</tr>
<tr>
	<td>echo</td>
	<td>TC_applicationLoginConditional_002</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>Populate the user name input '${appspec.security.defaultLoginPage.loginForm.loginUsernameInput.title}' in the login form on the default login page with a stored value.</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>${appspec.security.defaultLoginPage.loginForm.id}:${appspec.security.defaultLoginPage.loginForm.loginUsernameInput.id}</td>
	<td>${username}</td>
</tr>
<tr>
	<td>echo</td>
	<td>TC_applicationLoginConditional_003</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>Populate the password input '${appspec.security.defaultLoginPage.loginForm.loginPasswordInput.title}' in the login form on the default login page with a stored value.</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>${appspec.security.defaultLoginPage.loginForm.id}:${appspec.security.defaultLoginPage.loginForm.loginPasswordInput.id}</td>
	<td>${password}</td>
</tr>
<tr>
	<td>echo</td>
	<td>TC_applicationLoginConditional_004</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>Execute the action '${appspec.security.defaultLoginPage.loginForm.loginAction.title}' in the login form on the default login page.</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>${appspec.security.defaultLoginPage.loginForm.id}:${appspec.security.defaultLoginPage.loginForm.loginAction.id}</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>TC_applicationLoginConditional_005</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>Jump here to skip the login action if the destination page is not a login page.</td>
	<td></td>
</tr>
<tr>
	<td>label</td>
	<td>notLoginPage</td>
	<td></td>
</tr>

</tbody></table>
</body>
</html>
<!-- clickframes::version=3066994008::clickframes -->